<?php

require_once "utils/Validate.php";
require_once "data/dao/BaseDAO.php";

class ExternalClicksDAO extends BaseDAO{

	public function recordClick($url, $gameId){

		Validate::notNull($url);
		Validate::notNull($gameId);
		
		$datetime = date(DATE_ISO8601);
				
		$values = array($url, $datetime, $gameId);
		$this->update("insert into externalClicks value ('%s', '%s', '%s')", $values);
	}
}
?>